package com.demo2do.boyle.backend.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.demo2do.core.web.interceptor.MenuSetting;

/**
 * 
 * @author downpour
 */
@Controller
public class HomeController {
    
    /**
     * 
     * 
     * @return
     */
    @RequestMapping("/home")
    @MenuSetting("menu-home")
    public ModelAndView home(){
        
        ModelAndView modelAndView = new ModelAndView("home");
        return modelAndView;
        
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping("/customer")
    public String customer() {
        return "redirect:/customers";
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping("/aduser")
    public String aduser(){
        return "redirect:/adusers";
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping("/report")
    public String report(){
        return "redirect:/reports/aduser";
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping("/advertisement")
    public String task(){
        return "redirect:/advertisements";
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping("/system")
    public String system() {
        return "redirect:/principals";
    }
}
